<style type="text/css">
    .flex{
        height: 40px;
    }
    .outer{
        height: 40px;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">商家号码:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" data-rule="required" data-field="mobile" data-source="shops/shops/index" class="form-control selectpage" name="row[phone]" type="text" value="{$row.phone}" data-search-field="mobile">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">业务员:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-salesman_admin_id" data-rule="required" class="form-control selectpicker" name="row[salesman_admin_id]" data-rule="required">
                <option value="">请选择</option>
                {foreach name="salesmanList" item="vo"}
                    <option value="{$vo.id}" {if $row.salesman_admin_id==$vo.id}selected{/if}>{$vo.nickname}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group" id="shop">
        <label class="control-label col-xs-12 col-sm-2">商家店铺:</label>
        <div class="col-xs-12 col-sm-8 shop-list">
            <ul class="list-group">
                {foreach $shop as $p}
                <li class="list-group-item">{$p.shop_name}</li>
                {/foreach}
            </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">制卡数量:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount" name="row[amount]" class="form-control" type="text" data-rule="required" value="{$row.amount}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">制卡时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-publish_dt" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[publish_dt]" type="text" value="{$row.publish_dt}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">制卡费用:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" name="row[money]" class="form-control" type="text" data-rule="required" value="{$row.money}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">卡片模板:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-img" data-rule="required" class="form-control" size="50" name="row[img]" type="text" value="{$row.img}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-img" class="btn btn-danger faupload" data-input-id="c-img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-img" class="btn btn-primary fachoose" data-input-id="c-img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-img"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-img"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">收件地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sjdz" name="row[sjdz]" class="form-control" type="text" value="{$row.sjdz}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">收件号码:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sjhm" name="row[sjhm]" class="form-control" type="text" value="{$row.sjhm}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
